package cn.com.thinker.security.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.orm.jpa.vendor.HibernateJpaSessionFactoryBean;

import cn.com.thinker.security.sdk.system.dao.SystemUserDao;


/**
 * Created by crazyHC on 2017/6/28.
 */
@SpringBootApplication(scanBasePackages = {"cn.com.thinker"})
public class ThinSecurityServer {

    public static void main(String[] args) {
        SpringApplication.run(ThinSecurityServer.class,args);
    }

    @Bean
    public HibernateJpaSessionFactoryBean sessionFactory() {
        return new HibernateJpaSessionFactoryBean();
    }
}
